{extend name="common/layout" /}

{block name="content"}
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/font-family.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/layui.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/iconfont.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/info.css">

<script type="text/javascript">
    $(document).ready(function(){
        $(".image_lazy_load").nc_lazyload();
    });
</script>

<div class="container">
	<div class="sitenav-bar" style="line-height: 40px;margin-top: 5px;">
        <div class="sitenav">
        	当前位置：
        	<a href="{:url('cms/Cmsarticle/index')}">茶生活</a>
        	{if !empty(I('get.class_id'))}
        		> {$article_class['class_name']}
        	{/if}
        </div>
    </div>
	<div class="info-list-left">
        <div class="info-title">
            <div class="title-icon">
                <img src="__SHOP_DEFAULT__/custom/images/icon/info-title.png" alt="">
               	{$article_class['class_name']}
            </div>
        </div>
        <div class="referral">
        	<?php if(!empty($cms_article_list) && is_array($cms_article_list)) {?>
        		<?php foreach($cms_article_list as $value) {?>
			    	<?php $article_url = url('cms/Cmsarticle/article_detail',array('article_id'=>$value['article_id']));?>
				    <div class="img-text">
		                <div class="media">
		                    <div class="media-left">
		                        <a class="media-body" href="<?php echo $article_url;?>" title="<?php echo $value['article_title'];?>">
									<img alt="<?php echo $value['article_title'];?>" src="<?php echo getCMSArticleImageUrl($value['article_attachment_path'], $value['article_image'], 'list');?>">
		                        </a>
		                    </div>
		                    <a class="media-body" href="<?php echo $article_url;?>" title="<?php echo $value['article_title'];?>"> 
		                        <h4 class="media-heading"><?php echo $value['article_title'];?></h4>
		                        <div class="media-details">
		                            <span>作者：<?php echo empty($value['article_author'])?'匿名':$value['article_author'];?></span>
		                            <span>出处：<?php echo empty($value['article_origin'])?C('site_name'):$value['article_origin'];?></span>
		                            <span><?php echo date('Y-m-d',$value['article_publish_time']);?></span>
		                            <span class="right">
		                            	<i class="icon kangle-icon">&#xe926;</i><?php echo $value['article_click'];?>
		                            </span>
		                        </div>
		                        <p class="media-text"><?php echo $value['article_abstract'];?></p>
		                    </a>
		                </div>
		            </div>
			    <?php } ?>
            	<div class="pagination"> <?php echo $show_page;?> </div>
		    <?php } else { ?>
		    	<div class="no-content-b"><i class="article"></i>没有符合条件的记录</div>
		    <?php } ?>
            
        </div>
    </div>
	
	<div class="info-list-right">
		{include file="cms/cmsarticle/article_list_sidebar" /}
	</div>
</div>

{/block}